package com.example.springiocdemo.Demo;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Component
public class Demo3 {
    @Bean
    public User getUser1(){
        User user = new User();
        user.setName("i 'm user1");
        user.setAge(18);
        return user;
    }

    @Bean
//    public User getUser2(){
//        User user = new User();
//        user.setName("i 'm user2");
//        user.setAge(18);
//        return user;
//    }
}
